<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="zh-CN"><link href="stylesheet.css" media="all" rel="stylesheet" type="text/css">
<title>pg_operator</title>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d286c55b63a3c54a1e43d10d4c203e75"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head><body class="SECT1">
<div>
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th colspan="5" align="center" valign="bottom">PostgreSQL 8.2.3 中文文档</th></tr>
<tr><td width="10%" align="left" valign="top"><a href="catalog-pg-opclass.html" accesskey="P">后退</a></td><td width="10%" align="left" valign="top"><a href="catalogs.html">快退</a></td><td width="60%" align="center" valign="bottom">章43. 系统表</td><td width="10%" align="right" valign="top"><a href="catalogs.html">快进</a></td><td width="10%" align="right" valign="top"><a href="catalog-pg-pltemplate.html" accesskey="N">前进</a></td></tr>
</table>
<hr align="LEFT" width="100%"></div>
<div class="SECT1"><h1 class="SECT1"><a name="CATALOG-PG-OPERATOR">43.25. <tt class="STRUCTNAME">pg_operator</tt></a></h1><a name="AEN64045"></a>
<p><tt class="STRUCTNAME">pg_operator</tt> 存储有关操作符的信息。参阅 <a href="sql-createoperator.html"><i>CREATE OPERATOR</i></a> 和 <a href="xoper.html">节33.12</a> 获取这些操作符参数的细节。</p>
<div class="TABLE"><a name="AEN64051"></a>
<p><b>表43-25. <tt class="STRUCTNAME">pg_operator</tt> 字段</b></p>
<table border="1" class="CALSTABLE"><col><col><col><col>
<thead>
<tr><th>名字</th><th>类型</th><th>引用</th><th>描述</th></tr>
</thead>
<tbody>
<tr><td><tt class="STRUCTFIELD">oprname</tt></td><td><tt class="TYPE">name</tt></td><td>&nbsp;</td><td>操作符的名字</td></tr>
<tr><td><tt class="STRUCTFIELD">oprnamespace</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-namespace.html"><tt class="STRUCTNAME">pg_namespace</tt></a>.oid</tt></td><td>包含此操作符的名字空间的 OID</td></tr>
<tr><td><tt class="STRUCTFIELD">oprowner</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-authid.html"><tt class="STRUCTNAME">pg_authid</tt></a>.oid</tt></td><td>操作符所有者</td></tr>
<tr><td><tt class="STRUCTFIELD">oprkind</tt></td><td><tt class="TYPE">char</tt></td><td>&nbsp;</td><td><tt class="LITERAL">b</tt> = 中缀("两边")， <tt class="LITERAL">l</tt> = 前缀("左边")， <tt class="LITERAL">r</tt> = 后缀("右边")</td></tr>
<tr><td><tt class="STRUCTFIELD">oprcanhash</tt></td><td><tt class="TYPE">bool</tt></td><td>&nbsp;</td><td>这个操作符支持 Hash 连接</td></tr>
<tr><td><tt class="STRUCTFIELD">oprleft</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-type.html"><tt class="STRUCTNAME">pg_type</tt></a>.oid</tt></td><td>左操作数的类型</td></tr>
<tr><td><tt class="STRUCTFIELD">oprright</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-type.html"><tt class="STRUCTNAME">pg_type</tt></a>.oid</tt></td><td>右操作数的类型</td></tr>
<tr><td><tt class="STRUCTFIELD">oprresult</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-type.html"><tt class="STRUCTNAME">pg_type</tt></a>.oid</tt></td><td>结果类型</td></tr>
<tr><td><tt class="STRUCTFIELD">oprcom</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>此操作符的交换符，如果存在的话</td></tr>
<tr><td><tt class="STRUCTFIELD">oprnegate</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>此操作符的反转器，如果存在的话</td></tr>
<tr><td><tt class="STRUCTFIELD">oprlsortop</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>如果此操作符支持融合连接，这里是对左操作数排序的操作符(<tt class="LITERAL">L&lt;L</tt>)</td></tr>
<tr><td><tt class="STRUCTFIELD">oprrsortop</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>如果此操作符支持融合连接，这里是对右操作数排序的操作符(<tt class="LITERAL">R&lt;R</tt>)</td></tr>
<tr><td><tt class="STRUCTFIELD">oprltcmpop</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>如果这个操作符支持融合连接，那么这是比较左右操作数类型(<tt class="LITERAL">L&lt;R</tt>)的小于操作符</td></tr>
<tr><td><tt class="STRUCTFIELD">oprgtcmpop</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-operator.html"><tt class="STRUCTNAME">pg_operator</tt></a>.oid</tt></td><td>如果这个操作符支持融合连接，那么这是比较左右操作数类型(<tt class="LITERAL">L&gt;R</tt>)的大于操作符</td></tr>
<tr><td><tt class="STRUCTFIELD">oprcode</tt></td><td><tt class="TYPE">regproc</tt></td><td><tt class="LITERAL"><a href="catalog-pg-proc.html"><tt class="STRUCTNAME">pg_proc</tt></a>.oid</tt></td><td>实现这个操作符的函数</td></tr>
<tr><td><tt class="STRUCTFIELD">oprrest</tt></td><td><tt class="TYPE">regproc</tt></td><td><tt class="LITERAL"><a href="catalog-pg-proc.html"><tt class="STRUCTNAME">pg_proc</tt></a>.oid</tt></td><td>此操作符的约束选择性计算函数</td></tr>
<tr><td><tt class="STRUCTFIELD">oprjoin</tt></td><td><tt class="TYPE">regproc</tt></td><td><tt class="LITERAL"><a href="catalog-pg-proc.html"><tt class="STRUCTNAME">pg_proc</tt></a>.oid</tt></td><td>此操作符的连接选择性计算函数</td></tr>
</tbody>
</table>
</div>
<p>未用的字段包含零。比如，<tt class="STRUCTFIELD">oprleft</tt> 对于前缀操作符而言是零。</p>
</div>
<div>
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="33%" align="left" valign="top"><a href="catalog-pg-opclass.html" accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">首页</a></td><td width="33%" align="right" valign="top"><a href="catalog-pg-pltemplate.html" accesskey="N">前进</a></td></tr>
<tr><td width="33%" align="left" valign="top"><tt class="STRUCTNAME">pg_opclass</tt></td><td width="34%" align="center" valign="top"><a href="catalogs.html" accesskey="U">上一级</a></td><td width="33%" align="right" valign="top"><tt class="STRUCTNAME">pg_pltemplate</tt></td></tr>
</table>
</div>
</body></html>